package com.gzist.elderlyserviceplatform.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gzist.elderlyserviceplatform.common.base.BaseDO;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema; // 替换包路径
import lombok.Data;

/**
 * 公益活动表
 */
@Data
@TableName("activity")
@Schema(name = "Activity对象", description = "公益活动表")
public class Activity extends BaseDO {

    @Schema(accessMode = Schema.AccessMode.READ_ONLY)
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "活动名称")
    private String name;

    @Schema(description = "封面图片")
    private String cover;

    @Schema(description = "简介")
    private String summary;

    @Schema(description = "活动内容")
    private String content;

    @Schema(description = "开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @Schema(description = "结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    @Schema(description = "地址")
    private String address;

}